package com.module.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author chengluqiang
 * @since 2019-03-04
 */
@Data
@Accessors(chain = true)
public class FileTable extends Model<FileTable> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String filename;
    private Double filesize;
    private String filepathname;


    public static final String ID = "id";

    public static final String FILENAME = "filename";

    public static final String FILESIZE = "filesize";

    public static final String FILEPATHNAME = "filepathname";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
